package com.aipsi.cws.common.exception;

/**
 * @author 大忽悠
 */
public enum CustomExceptionType
{
    FAIL(400,"失败"),
    UNAUTHORIZED (401,"未认证"),
    NOT_FOUND(404,"资源不存在"),
    PARAM_LOST(412,"缺失参数"),
    INTERNAL_SERVER_ERROR(500,"服务器内部错误");

    CustomExceptionType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private String desc;

    private int code;

    public String getDesc() {
        return desc;
    }

    public int getCode() {
        return code;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
